using UnityEngine;
using System.Collections;

public class colidir_inimigo : MonoBehaviour {

     public GameObject bullet1 = new GameObject();
	public GameObject bullet2 = new GameObject();
	public GameObject bullet3 = new GameObject();
	public GameObject bullet4 = new GameObject();
		
	
	 public int bulletPower = 1;

	// Use this for initialization
	void Start () {
        //go = GameObject.FindWithTag("enemy");
        
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnTriggerEnter(Collider collider) 
       {
           if (collider.gameObject.tag == "bala")
           {
               Destroy(collider.gameObject);
               Debug.Log("oi");

           }
		
       }
}
